<template>
  <div>
    <input v-model="shuxue">
    <br>
    <input v-model="yuwen">
    <br>
    <span>{{total}}</span>
  </div>
</template>

<script>

  export default {
    data() {
      return {shuxue:55,yuwen:66}
    },
    computed: {
      total: function () {
        return Number(this.yuwen) + Number(this.shuxue)
      }
    },
    methods: {},
    created () {

    }
  }

</script>
